package com.blx.model.response;

import com.blx.model.constants.ResponseConstants;

public class DemandResponse extends BaseResponse{

	/** 
	* @Fields serialVersionUID 
	*/
	private static final long serialVersionUID = 1759410551175250171L;
	private static DemandResponse demandResponse;
	private static DemandResponse demandErrorResponse;
	
	public static DemandResponse getSuccessResponse(){
		if(demandResponse == null){
			demandResponse = new DemandResponse();
			demandResponse.setResponseCode(ResponseConstants.SUCCESS);
			demandResponse.setErrorMsg("success");
		}
		return demandResponse;
	}
	
	public static DemandResponse getErrorResponse(){
		if(demandErrorResponse == null){
			demandErrorResponse = new DemandResponse();
			demandErrorResponse.setResponseCode(ResponseConstants.ERROR);
			demandErrorResponse.setErrorMsg("error");
		}
		return demandErrorResponse;
	}
}
